import axios from "../index.js";
// 灾情报送

// 灾情报送  编辑 列表
export const zqbsSubmissionList = (data) => {
  return axios.request({
    url: "/emergency/emergencyReport/listPage",
    method: "post",
    data: data
  });
};
// 灾情报送  编辑 详情
export const zqbsSubmissiongetById = (data) => {
  return axios.request({
    url: "/emergency/emergencyReport/getById",
    method: "get",
    data: data
  });
};
// 灾情报送  新增保存
export const addAave = (data) => {
  return axios.request({
    url: "/emergency/emergencyReport/save",
    method: "post",
    data: data
  });
};
// 灾情报送  新增报送
export const postAddSubmission = (data) => {
  return axios.request({
    url: "/emergency/emergencyReport/submit",
    method: "post",
    data: data
  });
};
// 灾情报送  批量删除
export const postDeleteDatas = (data) => {
  return axios.request({
    url: "/emergency/emergencyReport/deleteByIds",
    method: "post",
    data: data
  });
};
// 删除
export const postDeleteData = (data) => {
  return axios.request({
    url: "/emergency/emergencyReport/deleteById",
    method: "post",
    data: data
  });
};
// 灾情报送  修改
export const zqkcFeedbackUpdById = (data) => {
  return axios.request({
    url: "/emergency/emergencyReport/updById",
    method: "post",
    data: data
  });
};
// 首页下拉 灾情报送  应急事件 数据 接口
export const homePageSelete = (data) => {
  return axios.request({
    url: "/emergency/emergencyEvent/getSubmitEvent",
    method: "post",
    data: data
  });
};
// 灾情统计 应急事件下拉
export const emergencyEventsPageSelete = (data) => {
  return axios.request({
    url: "/emergency/emergencyEvent/getAlreadySubmitAndProcessedEvent",
    method: "get",
    data: data
  });
};
// 灾情报送  应急事件 数据 接口
export const getYjsj = (data) => {
  return axios.request({
    url: "/emergency/emergencyReport/getReportEvent",
    method: "get",
    data: data
  });
};

//   应急事件  详情数据 接口
export const getYjsjGetById = (data) => {
  return axios.request({
    url: "/emergency/emergencyEvent/getById",
    method: "get",
    data: data
  });
};
// 灾情报送  灾情报送任务 审批页面  审批
export const postCheck = (data) => {
  return axios.request({
    url: "/emergency/emergencyReport/approve", //
    method: "post",
    data: data
  });
};


// 灾情信息报送 模块
// 列表
export const zqxxbsListData = (data) => {
  return axios.request({
    url: "/emergency/emergencyInfo/listPage", //
    method: "post",
    data: data
  });
};
// 填报 提交
export const zqxxbsSubmit = (data) => {
  return axios.request({
    url: "/emergency/emergencyInfo/save", //
    method: "post",
    data: data
  });
};
// 灾情信息 线路接口
export const getCircuitData = (data) => {
  return axios.request({
    url: "/emergency/emergencyInfo/getCircuitData", //
    method: "get",
    data: data
  });
};
// 灾情信息 线路详情接口
export const getCircuitDetailData = (data) => {
  return axios.request({
    url: "/emergency/emergencyInfo/getCircuitDetailData",
    method: "get",
    data: data
  });
};
// 灾情信息 续报详情接口
export const getResubmitDetailData = (data) => {
  return axios.request({
    url: "/emergency/emergencyInfo/getById",
    method: "get",
    data: data
  });
};
// 灾情信息 续报修改接口
export const SaveUpdById = (data) => {
  return axios.request({
    url: "/emergency/emergencyInfo/updById",
    method: "post",
    data: data
  });
};
// 灾情信息 统计列表
export const getStatisticInfoData = (data) => {
  return axios.request({
    url: "/emergency/emergencyInfo/getStatisticInfoData",
    method: "post",
    data: data
  });
};
// 灾情信息 统计列表搜索查询接口
export const statisticInfoSearchPage = (data) => {
  return axios.request({
    url: "/emergency/emergencyInfo/statisticInfoSearchPage",
    method: "post",
    data: data
  });
};
// 灾情信息 统计列表 点击数字弹窗数据 接口
export const getInfoDetailList = (data) => {
  return axios.request({
    url: "/emergency/emergencyInfo/getInfoDetailList",
    method: "get",
    data: data
  });
};
// 灾情信息 首页 table 接口
export const getHomePageStatisticInfo = (data) => {
  return axios.request({
    url: "/emergency/infoHomePage/getHomePageStatisticInfo",
    method: "get",
    data: data
  });
};
// 灾情信息 首页 table 点击数字弹窗数据接口
export const getHomePageInfoDetailList = (data) => {
  return axios.request({
    url: "/emergency/infoHomePage/getHomePageInfoDetailList",
    method: "get",
    data: data
  });
};
// 导出
export const exportFileApi = (data) => {
  return axios.request({
    url: "/emergency/emergencyReport/excelExport",
    method: "post",
    data: data,
    headers: { "Content-Type": "application/x-www-form-urlencoded" },
    responseType: "blob"
  });
};
// 组织机构
export const getOrganizationList = (data) => {
  return axios.request({
    url: "/emergency/organization/getOrganizationList",
    method: "get",
    data: data
  });
};
// export const getByAreaNameAndTime = (data) => {
//   return axios.request({
//     url: "/docking/futureDaily/getByAreaNameAndTime",
//     method: "get",
//     data: data
//   });
// };
// 灾情信息 统计列表
export const getByAreaNameAndTime = (data) => {
  return axios.request({
    url: "/docking/futureDaily/getByAreaNameAndTime",
    method: "get",
    data: data
  });
};



